package com.vt.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vt.admin.api.dto.OrganizationTree;
import com.vt.admin.api.dto.OrganizationTypeTree;
import com.vt.admin.api.dto.SysOrganizationListDto;
import com.vt.admin.api.dto.user.redis.UserOrganization;
import com.vt.admin.api.entity.SysOrganization;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 部门
 */
public interface SysOrganizationMapper extends BaseMapper<SysOrganization> {

    List<UserOrganization> selectUserOrganization();

    List<SysOrganizationListDto> list(SysOrganization t);

    List<OrganizationTypeTree> typeList(SysOrganization t);

    List<OrganizationTree> queryByIdx(@Param("set") Set<String> children);
}
